import Vue from 'vue'
import './plugins/vuetify'

import Vuetify from 'vuetify'
// Helpers
import colors from 'vuetify/es5/util/colors'
import App from './App.vue'
import router from './router'

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import dayjs from 'dayjs';

import configFilters from '@/config/filters'

configFilters(Vue);
Vue.use(mavonEditor);

Vue.config.productionTip = false;

//代理第三方库
Object.defineProperty(Vue.prototype, '$dayjs', {value: dayjs});
Object.defineProperty(Vue.prototype, '$markdownIt', {value: mavonEditor.markdownIt});

Vue.use(Vuetify, {
  theme: {
    // primary: colors.red.darken1, // #E53935
    secondary: colors.lightBlue.lighten2, // #FFCDD2
    // accent: colors.indigo.base // #3F51B5
  }
});



// Register AV objects to the global
window.AV = require('leancloud-storage');

new Vue({
  render: h => h(App),
  router
}).$mount('#app');
